package org.csu.zhangdian.service;

import org.csu.zhangdian.domain.Store;
import org.csu.zhangdian.persistence.StoreMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StoreService {

    @Autowired
    private StoreMapper storeMapper;

    //获取店铺名和地址
    public Store getSA(String username){
        return storeMapper.getStoreByUsername(username);
    }
}
